<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 * $Log$
 *
 */
set_time_limit(0);

function SendDBUpdateSQL($strWeb, $strSQL, $strSample){
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, "http://secure.".$strWeb."/crontab/AddGambleTypeLimitForUser.php");
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_TIMEOUT, 60);
	curl_setopt($ch, CURLOPT_HEADER, 0);
	$ret = curl_exec ($ch);
	curl_close ($ch);
	print "<a style='color: #0000FF; font-size:16px; font-weight: 700;'>".$strWeb.":<a> <br />\n";
	print $ret."<br />\n";
	print "<hr />\n";
	flush();
}

include($_SERVER["DOCUMENT_ROOT"]."/common/AllWeb.inc.php");
foreach($_arrWeb as $key => $arrV){
	SendDBUpdateSQL($arrV[0], $strSQL, "");
}
//樣本DB
//SendDBUpdateSQL("luckyball.cc", $strSQL, "Sample_");
 ?>